//
//  YBBlock.m
//  objc_test
//
//  Created by Clover on 2021/10/9.
//

#import "YBBlock.h"

@implementation YBBlock
- (instancetype)init{
    if (self = [super init]) {
        [self testBlock];
    }
    return self;
}

- (void)testBlock{

    
    __block int a = 10;
    int b = 10;
    NSLog(@"未进入: %p", &a);
    void(^YBBlock)(void) = ^{
        NSLog(@"已进入: %p", &a);
    };
    YBBlock();
    NSLog(@"%@ 已退入: %p", YBBlock, &a);
    
}
@end
